package com.chinacoal.hr.levelimpl.utils;

/**
 * @author: YunTao.Li
 * @create: 2019-11-17 01:09
 * @description: 静态字典，可能被废弃
 **/
public class StaticDicts {

    public static final String PROCESS_INST_STATE_RUNNING = "2";
    public static final String PROCESS_INST_STATE_FINISHED = "7";

    public static final String BUSINESS_STATUS_DRAFT = "A"; // 审批状态：草稿
    public static final String BUSINESS_STATUS_DRAWBACK = "B"; // 审批状态：撤回
    public static final String BUSINESS_STATUS_SUBMITTED = "C"; // 审批状态：已提交
    public static final String BUSINESS_STATUS_DISAGREE = "D"; // 审批状态：驳回
    public static final String BUSINESS_STATUS_APPROVALED = "E"; // 审批状态：已审批
    public static final String BUSINESS_STATUS_APPROVING = "F"; // 审批状态：审批中

    public static final String DOC_TYPE_ID_LEAVE = "e1c4b2f3-87e5-11e7-b512-7a07f6fc3890";
    public static final String DOC_TYPE_ID_TRAVE = "e1c4b2f3-87e5-11e7-b512-7a07f6fc2222";
    public static final String DOC_TYPE_ID_TRAVE_CHANGE = "e1c4b2f3-87e5-11e7-b512-7a07f6fc3333";


    public static final String SUM_TYPE_APPLYING = "1"; //状态：1-申请中,2-已生效
    public static final String SUM_TYPE_EFFECTED = "2";//状态：1-申请中,2-已生效

    public static final String TIME_TYPE_MORNING = "1";//上午
    public static final String TIME_TYPE_AFTERNOON = "2";//下午
    public static final String TIME_TYPE_ALLDAY = "3";//全天

    public static final String EFFECTFLAG_VALID = "2"; //是否生效1未生效2生效
    public static final String EFFECTFLAG_INVALID = "1";//是否生效1未生效2生效

    public static final String PATYPE_APPEAL = "15";

    public static final String SIGN_STATUS_NORMAL = "0"; //正常
    public static final String SIGN_STATUS_UNUSUAL = "1"; //异常
    public static final String SIGN_STATUS_MISSING = "2"; // 漏签

    public static final String CONFIRM_STATUS_NORMAL = "Y"; //考勤状态：正常
    public static final String CONFIRM_STATUS_UNUSUAL = "N"; //考勤状态：异常

    public static final Integer SIGN_UP_TIME = 830;
    public static final Integer SIGN_OUT_TIME = 1700;

    public static final String HOLIDAY_TYPE_PERSONAL = "1";// 事假
    public static final String HOLIDAY_TYPE_SICK = "2";// 病假
    public static final String HOLIDAY_TYPE_ANNUAL = "3";// 年假
    public static final String HOLIDAY_TYPE_MATERNITY = "4";// 产假
    public static final String HOLIDAY_TYPE_MARITAL = "5";// 婚假
    public static final String HOLIDAY_TYPE_PATENITY = "6";// 哺乳假
    public static final String HOLIDAY_TYPE_FUNERAL = "7";// 丧假
    public static final String HOLIDAY_TYPE_FAMILYCARE = "8";// 探亲假
    public static final String HOLIDAY_TYPE_SORE = "9";// 工伤假
    public static final String HOLIDAY_TYPE_PAID = "10";// 培训考试假
    public static final String HOLIDAY_TYPE_PUBLIC = "11";// 公假

    public static final String HTYPE_HOLIDAY = "1"; // 法定假日
    public static final String HTYPE_WORKDAY = "2"; // 正常上班
    public static final String HTYPE_NODATA = "0"; // 没有数据

    public static final String HR_PA_TYPE_PERSONAL = "1"; //事假
    public static final String HR_PA_TYPE_SICK = "2"; //病假
    public static final String HR_PA_TYPE_ANNUAL = "3"; //年假
    public static final String HR_PA_TYPE_MATERNITY = "4"; //产假
    public static final String HR_PA_TYPE_MARITAL = "8"; //婚假
    public static final String HR_PA_TYPE_PATENITY = "9"; //哺乳假
    public static final String HR_PA_TYPE_FUNERAL = "10"; //丧假
    public static final String HR_PA_TYPE_FAMILYCARE = "11"; //探亲假
    public static final String HR_PA_TYPE_SORE = "12";// 工伤假
    public static final String HR_PA_TYPE_PAID = "13";// 培训考试假
    public static final String HR_PA_TYPE_PUBLIC = "14";// 公假
    public static final String HR_PA_TYPE_APPEAL = "15"; //申诉
    public static final String HR_PA_TYPE_TRAVEL = "6"; //因公外出



    public static String getPATypeByHolidayType(String holidayType) {
        String patype = "1";
        if (HOLIDAY_TYPE_PERSONAL.equals(holidayType)) { // 事假
            patype = HR_PA_TYPE_PERSONAL;
        } else if (HOLIDAY_TYPE_SICK.equals(holidayType)) { // 病假
            patype = HR_PA_TYPE_SICK;
        } else if (HOLIDAY_TYPE_ANNUAL.equals(holidayType)) { // 年假
            patype = HR_PA_TYPE_ANNUAL;
        } else if (HOLIDAY_TYPE_MATERNITY.equals(holidayType)) { // 产假
            patype = HR_PA_TYPE_MATERNITY;
        } else if (HOLIDAY_TYPE_MARITAL.equals(holidayType)) { //婚假
            patype = HR_PA_TYPE_MARITAL;
        } else if (HOLIDAY_TYPE_PATENITY.equals(holidayType)) { // 哺乳假
            patype = HR_PA_TYPE_PATENITY;
        } else if (HOLIDAY_TYPE_FUNERAL.equals(holidayType)) { // 丧假
            patype = HR_PA_TYPE_FUNERAL;
        } else if (HOLIDAY_TYPE_FAMILYCARE.equals(holidayType)) { // 探亲假
            patype = HR_PA_TYPE_FAMILYCARE;
        } else if (HOLIDAY_TYPE_SORE.equals(holidayType)) { // 工伤假
            patype = HR_PA_TYPE_SORE;
        } else if (HOLIDAY_TYPE_PAID.equals(holidayType)) { // 培训考试假
            patype = HR_PA_TYPE_PAID;
        } else if (HOLIDAY_TYPE_PUBLIC.equals(holidayType)) { // 公假
            patype = HR_PA_TYPE_PUBLIC;
        }

        return patype;
    }
}
